<template>
  <div class="list">
      <router-link to="/list/add">添加</router-link>
      <router-link to="/list/edit">编辑</router-link>
      <ul>
          <li v-for="u in users" :key="u.id">
              {{u.name}}
          </li>
      </ul>
  </div>
</template>

<script>
export default {
    data(){
        return {
            users:[
                {id:0,name:"张三"},
                {id:1,name:"王五"},
                {id:2,name:"赵六"}
            ]
        }
    },
  
}
</script>

<style>

</style>